#include <stdio.h>
#include <stdlib.h>
#include "mybintree.h"

int main(int argc, char *argv[])
{
    BINNODE *root;
    root=createbt();
    printf("前序遍历二叉树：");
    preorder(root);
    printf("\n中序遍历二叉树：");
    inorder(root);
    printf("\n后序遍历二叉树：");
    postorder(root);
    printf("\n");
    
    printf("叶子结点数目为：%d\n",numOfLeaf(root));
    printf("度为1的结点数目为：%d\n",numOfOneChild(root));
    printf("度为2的结点数目为：%d\n",numOfTwoChild(root));

  
  system("PAUSE");	
  return 0;
}
